'use strict'

//-------------------------4.7 给类型增加方法-------------------------------------------

Function.prototype.method = function (name, func) {
    this.prototype[name] = func;
    return this;
}